// mock/index.ts
import pkg from "mockjs";
var { mock } = pkg;
var mock_default = [
  {
    url: "/api/examples/records",
    method: "POST",
    response: (req) => {
      const { current, pageSize } = req.body;
      return mock({
        code: 200,
        data: {
          current,
          pages: 3,
          count: 30,
          "data|15": [
            {
              "paymentStatus|1": [0, 1, 2],
              "amount|1-100": 100,
              withdrawTime: '@datetime("yyyy-MM-dd HH:mm")'
            }
          ]
        }
      });
    }
  },
  {
    url: "/api/examples/queryFriends",
    method: "POST",
    response: (req) => {
      const { current, pageSize } = req.body;
      return mock({
        code: 200,
        data: {
          current,
          pages: 3,
          count: 30,
          "data|15": [
            {
              avatar: "@Image('30x30','@color')",
              nickName: "@cname",
              "activeStatus|1": [0, 1]
            }
          ]
        }
      });
    }
  },
  {
    url: "/api/examples/task",
    method: "POST",
    response: () => ({
      code: 200,
      data: {
        signStatus: 0,
        count: 3700,
        amount: 0.37,
        videoCount: 24,
        residueCount: 24,
        videoSubTitle: "\u770B\u89C6\u9891\u5F97\u91D1\u5E01",
        inviteSubTitle: "\u6BCF\u9080\u8BF71\u4EBA\u6FC0\u6D3B\u8D26\u53F7\uFF0C\u5956\u52B11000\u91D1\u5E01",
        treasureSubTitle: "\u6700\u9AD8\u5F00\u51FA\u4EF7\u503C188\u5143\u73B0\u91D1",
        treasureStatus: 1
      },
      message: "\u53C2\u6570\u6709\u8BEF"
    })
  },
  {
    url: "/api/examples/goldCoins",
    method: "POST",
    response: (req) => {
      const { current, pageSize } = req.body;
      return mock({
        code: 200,
        data: {
          current,
          pages: 3,
          "data|15": [
            {
              "title|1": ["\u91D1\u5E01\u5927\u8F6C\u76D8\u5956\u52B1", "\u597D\u53CB\u5E2E\u6211\u8D5A", "\u91D1\u5E01\u63D0\u73B0"],
              date: "@datetime('yyyy-MM-dd HH:mm:ss')",
              "count|0-1000": 1e3,
              "status|1": [0, 1],
              failMsg: "\u6309\u7406\u8BF4\u9A6C\u62C9\u677E\u5C71\u5361\u62C9\u5566\u585E\u62C9\u65AF\u62C9\u62C9\u624B\u4E86\u6309\u7406\u8BF4\u62C9\u4F38\u62C9\u4F38\u62C9\u4F38\u62C9\u4E0A\u6309\u65F6"
            }
          ]
        },
        msg: "success"
      });
    }
  }
];
export {
  mock_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsibW9jay9pbmRleC50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiY29uc3QgX19pbmplY3RlZF9maWxlbmFtZV9fID0gXCJEOlxcXFxwcm9qZWN0XFxcXHdhbmd4aWFvcGluZ1xcXFx5b25naHUtZ3poXFxcXG1vY2tcXFxcaW5kZXgudHNcIjtjb25zdCBfX2luamVjdGVkX2Rpcm5hbWVfXyA9IFwiRDpcXFxccHJvamVjdFxcXFx3YW5neGlhb3BpbmdcXFxceW9uZ2h1LWd6aFxcXFxtb2NrXCI7Y29uc3QgX19pbmplY3RlZF9pbXBvcnRfbWV0YV91cmxfXyA9IFwiZmlsZTovLy9EOi9wcm9qZWN0L3dhbmd4aWFvcGluZy95b25naHUtZ3poL21vY2svaW5kZXgudHNcIjtpbXBvcnQgcGtnIGZyb20gXCJtb2NranNcIjtcbmNvbnN0IHsgbW9jayB9ID0gcGtnO1xuXG5leHBvcnQgZGVmYXVsdCBbXG4gIHtcbiAgICB1cmw6IFwiL2FwaS9leGFtcGxlcy9yZWNvcmRzXCIsXG4gICAgbWV0aG9kOiBcIlBPU1RcIixcbiAgICByZXNwb25zZTogKHJlcTogYW55KSA9PiB7XG4gICAgICBjb25zdCB7IGN1cnJlbnQsIHBhZ2VTaXplIH0gPSByZXEuYm9keTtcbiAgICAgIHJldHVybiBtb2NrKHtcbiAgICAgICAgY29kZTogMjAwLFxuICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgY3VycmVudCxcbiAgICAgICAgICBwYWdlczogMyxcbiAgICAgICAgICBjb3VudDogMzAsXG4gICAgICAgICAgXCJkYXRhfDE1XCI6IFtcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgXCJwYXltZW50U3RhdHVzfDFcIjogWzAsIDEsIDJdLFxuICAgICAgICAgICAgICBcImFtb3VudHwxLTEwMFwiOiAxMDAsXG4gICAgICAgICAgICAgIHdpdGhkcmF3VGltZTogJ0BkYXRldGltZShcInl5eXktTU0tZGQgSEg6bW1cIiknLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICBdLFxuICAgICAgICB9LFxuICAgICAgfSk7XG4gICAgfSxcbiAgfSxcbiAge1xuICAgIHVybDogXCIvYXBpL2V4YW1wbGVzL3F1ZXJ5RnJpZW5kc1wiLFxuICAgIG1ldGhvZDogXCJQT1NUXCIsXG4gICAgcmVzcG9uc2U6IChyZXE6IGFueSkgPT4ge1xuICAgICAgY29uc3QgeyBjdXJyZW50LCBwYWdlU2l6ZSB9ID0gcmVxLmJvZHk7XG4gICAgICByZXR1cm4gbW9jayh7XG4gICAgICAgIGNvZGU6IDIwMCxcbiAgICAgICAgZGF0YToge1xuICAgICAgICAgIGN1cnJlbnQsXG4gICAgICAgICAgcGFnZXM6IDMsXG4gICAgICAgICAgY291bnQ6IDMwLFxuICAgICAgICAgIFwiZGF0YXwxNVwiOiBbXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgIGF2YXRhcjogXCJASW1hZ2UoJzMweDMwJywnQGNvbG9yJylcIixcbiAgICAgICAgICAgICAgbmlja05hbWU6IFwiQGNuYW1lXCIsXG4gICAgICAgICAgICAgIFwiYWN0aXZlU3RhdHVzfDFcIjogWzAsIDFdLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICBdLFxuICAgICAgICB9LFxuICAgICAgfSk7XG4gICAgfSxcbiAgfSxcbiAge1xuICAgIHVybDogXCIvYXBpL2V4YW1wbGVzL3Rhc2tcIixcbiAgICBtZXRob2Q6IFwiUE9TVFwiLFxuICAgIHJlc3BvbnNlOiAoKSA9PiAoe1xuICAgICAgY29kZTogMjAwLFxuICAgICAgZGF0YToge1xuICAgICAgICBzaWduU3R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